package com.lmind.core.gps.terminal.message;

/**
 * 回复消息
 * @author 刘勉
 *
 */
public class ReplyMessage extends AbstractMessage {

	protected boolean success;
	
	protected String reply;
	
	public ReplyMessage() {
		this(true);
	}
	
	public ReplyMessage(boolean success) {
		this(success, null);
	}
	
	public ReplyMessage(boolean success, String reply) {
		name = "reply";
		this.success = success;
		this.reply = reply;
	}
	
	public boolean isSuccess() {
		return success;
	}

	@Override
	public boolean hasResponse() {
		return false;
	}
	
	@Override
	public String toString() {
		return "ReplyMessage [success=" + success + ", reply=" + reply + "]";
	}

}
